package com.xyh.flowershop.utils;


import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

import java.util.HashSet;
import java.util.Set;

/**
 * @author 小约翰可汗
 * @className IdGenerator
 * @createTime 2024/4/58:46
 */
public class IdGenerator {

    public static Long nextId(){
        Snowflake snowflake = IdUtil.getSnowflake(1,1);
        return snowflake.nextId();
    }
}
